package com.example.news.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;


@Data
@TableName(value = "article")
public class Article {

    @TableId(value = "id")
    private Integer id;

    private String title;

    private String content;

    private Integer status;

    private String cover;

    private Date publishTime;

    private Integer userId;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    private Integer type;
}
